  <!-- Contenido -->
  <div id="container" class="box">
    <div id="obsah" class="content box">
      <div class="in">
        <h2><?=$titulo_pagina?></h2>
       
           <?php 

		        

		$botonExcel = '<img src="'.base_url().'images/excel.png"  alt="{e}" title="Pasar a Excel"/>';	
		echo '<br />';
		echo anchor("estadisticas/".$linkExcel.'/1', $botonExcel);
		echo '<br />';
	 	foreach($tablas as $tabla){
			if (isset($tabla['sobreCont'])){
				echo '<table class="tabla" border="1">';
				echo '<tr>';
				foreach ($tabla['sobreEnc'] as $celda){
					echo '	<th scope="col">'.$celda.'</th>';
				}
				echo '</tr>';
			
				foreach($tabla['sobreCont'] as $fila){
					echo '<tr>';
					foreach ($fila as $celda){
						echo '	<th scope="col">'.$celda.'</th>';
					}
					echo '</tr>';
				}
				echo '</table>';
			}
			
			if (!empty($opciones)){
				echo form_open_multipart('estadisticas/'.$modelo.'/'.$idcurso);      
				echo '<div class=busqueda>';
				echo 'Ordenar por: <br />';
				echo form_dropdown('orderby', $opciones,'','class="text"');
				echo form_dropdown('orderby2', $opciones,'','class="text"');
				echo form_dropdown('orderby3', $opciones,'','class="text"');
				echo form_submit(array('name'=>'Ordenar', 'value'=>'Ordenar', 'class' =>'boton'))."\n";
				echo '</div>';
				echo form_close()."\n";
			}


			if (isset($tabla['contenido'])){
				echo '<table class="tablasec" border="1">';
				echo '<tr>';
				foreach ($tabla['encabezado'] as $celda){
					echo '	<th scope="col"><strong>'.$celda.'</strong></th>';
				}
				echo '</tr>';
			
				foreach($tabla['contenido'] as $fila){
					echo '<tr>';
					foreach ($fila as $celda){
						echo '	<th scope="col">'.$celda.'</th>';
					}
					echo '</tr>';
				}
				echo '</table>';
			}
			
		}
	   ?>
			






  </div>
<!-- Contenido -->
